import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
import { WifiIpController } from './wifi-ip.controller';
import { WifiIpService } from './wifi-ip.service';
import { ErrorHandlerMiddleware } from '../middleware/errorhandler';

@Module({
  controllers: [WifiIpController],
  providers: [WifiIpService],
})
export class WifiIpModule implements NestModule {
  configure(consumer: MiddlewareConsumer) {
    consumer.apply(ErrorHandlerMiddleware).forRoutes('*');
  }
}
